package 继承题1;

public class WashingMachine extends ElectricalAppliances
{
    private String engineStyle;
    private double capacity;

    public WashingMachine(){}

    public WashingMachine(String brand, String model, String color, double price, String engineStyle, double capacity) {
        super(brand, model, color, price);
        this.engineStyle = engineStyle;
        this.capacity = capacity;
    }

    public String getEngineStyle() {
        return engineStyle;
    }

    public void setEngineStyle(String engineStyle) {
        this.engineStyle = engineStyle;
    }

    public double getCapacity() {
        return capacity;
    }

    public void setCapacity(double capacity) {
        this.capacity = capacity;
    }
}
